<html>
<head>
    <title>透析助手</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.5.6/css/sm.min.css">
    <link rel="stylesheet" href="__PUBLIC__/css/style.css">
    <link rel="stylesheet" href="__PUBLIC__/css/5s.css">
    <link rel="stylesheet" href="__PUBLIC__/css/6m.css">
    <link rel="stylesheet" href="__PUBLIC__/css/iconfont.css">
</head>
<body>
<div class="div1">
	<div class="head">
		<div class="HeadContent">
			<a href="<{:U('lists')}>" class="backIndex"><i class="iconfont">&#xe605;</i></a>
			<a href="javascript:;" class="HeadTitle">个人信息</a>
		</div>
	</div>
	<div class="PersonalHead">
		<div class="PersonalHeadImg">
			<if condition="$vo['pic'] neq ''">
                <img src="<{$vo.pic}>" id="headImg" style="border-radius:50%;" />
            <else />
                <img src="__PUBLIC__/images/PersonalHeadImg.png" id="headImg" />
            </if>
		</div>
		<div class="PersonalName">
			<{$vo.name|default='匿名'}>&nbsp; <{:$vo['sex']==2 ? '女' : '男'}>&nbsp; <{$vo.age}>岁
			<div>
				<{$vo.htp_name}>
			</div>
		</div>
	</div>
	<div class="OperateList">
		<ul>
			<li>
            <a href="<{:U('Weight/chart',array('pid'=>$vo['id'],'type'=>$userInfo['type']))}>">
                <div class="OperateListContent">
                   体重
                   <if condition="$userInfo['type'] eq '1'">
                    <div class="WeightContent">
                        <{:$vo['weight_safe']?$vo['weight_safe'].'kg':'您还未设置安全体重'}>
                    </div>
                    </if>
                </div> </a>
			</li>
			<li>
				<a href="<{:U('Blood/chart',array('pid'=>$vo['id']))}>">
				<div class="OperateListContent">
					血压
				</div> </a>
			</li>
			<li>
				<a href="<{:U('Medicine/index',array('pid'=>$vo['id']))}>">
				<div class="OperateListContent">
					用药
				</div> </a>
			</li>
			<li>
				<a href="<{:U('Food/index',array('pid'=>$vo['id']))}>">
				<div class="OperateListContent">
					饮食
				</div> </a>
			</li>
			<li>
				<a href="<{:U('Drink/chart',array('pid'=>$vo['id']))}>">
				<div class="OperateListContent">
					饮水
				</div> </a>
			</li>
			<li>
				<a href="<{:U('Chat/Index/user',array('sender'=>$userInfo['phone'],'receiver'=>$vo['phone'],'name'=>$vo['name']))}>">
                    <div class="OperateListContent">对话</div> 
                </a>
			</li>
		</ul>
	</div>
	</div>
<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.5.7/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/js/myjq.js'></script>
<script>
    $(function() {
	var move = function(e) {
          e.preventDefault && e.preventDefault();
          e.returnValue = false;
          e.stopPropagation && e.stopPropagation();
          return false;
        }
        //取消禁止滚动
        function remliste() {
          window.removeEventListener('touchmove', move);
        }
        //禁止滚动
        function addliste() {
          window.addEventListener('touchmove', move);
        }
		addliste()
		$(".div1").height(window.innerHeight);

        var h_devrice = $(window).height();
        var h_head = $(".head").height()
        var h_PersonalHead = $(".PersonalHead").height()
        $(".OperateList").height(h_devrice - h_head - h_PersonalHead);
    })
</script>
</body>
</html>